import { defineStore } from 'pinia'
import { getToken } from "@/utils/auth.js";

export const useUserStore = defineStore('user', {
  state: () => ({
    token: getToken() || undefined,
  }),
  getters: {

  },
  actions: {
    SET_TOKEN(token){
      this.token = token;
    },
  }
})
